package lab02.test19;

public class Test19 {
    public static void main(String[] args) {
        String a ="HelloWord";

        for (int i = a.length()-1; i >= 0 ; i --){
            if (a.charAt(i)>65&& a.charAt(i) <91){
                System.out.print((char)(a.charAt(i)+32));
            }
            if (a.charAt(i)>98&&a.charAt(i)<124){
                System.out.print((char)(a.charAt(i)-32));
           }
        }
    }
}
